package com.atguigu.gmall.mock.utils;

import java.util.Random;

//产生一个从  [fromNum,toNum]的随机整数
public class RandomNum {
    public static int getRandInt(int fromNum,int toNum){
        return fromNum + new Random().nextInt(toNum-fromNum+1);
    }
}
